package com.geek.water.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/7/28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("区域树视图对象")
public class AreaTreeVO {

    @ApiModelProperty("区域ID")
    private Long id;

    @ApiModelProperty("区域名称")
    private String name;

    @ApiModelProperty("上级区域ID")
    private Long parentAreaId;

    @ApiModelProperty("子区域列表")
    private List<AreaTreeVO> children = new ArrayList<>();
}